package com.corticon.dialogs.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * The composite id class for QuestionInSet class.
 *
 * @author Yanglifan
 */
@Embeddable
public class QuestionInSetId implements Serializable {

    private Long questionId;
    private Long questionSetId;

    public QuestionInSetId() {
    }

    public QuestionInSetId(Long questionId, Long questionSetId) {
        this.questionId = questionId;
        this.questionSetId = questionSetId;
    }

    @Column(name = "questionassoc_q_question_id_oid")
    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    @Column(name = "questionsetassoc_q_questionset_id_oid")
    public Long getQuestionSetId() {
        return questionSetId;
    }

    public void setQuestionSetId(Long questionSetId) {
        this.questionSetId = questionSetId;
    }
}
